<template>
	<view class="my-container">
		<!--  -->
		<my-login v-if="!token"></my-login>
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script lang="ts">
	import badgeMix from '../../../mixins/tabbar-badge.js'
	import { mapState } from 'vuex'
	
	computed: {
		...mapState('m_cart', ['token']),
	},
	
	export default {
		mixins:[badgeMix],
	}
</script>

<style lang="scss">
	.my-container {
		height: 100%;
	}
</style>
